package com.jhx.video.videomanager

import android.app.Activity
import com.jhx.common.framework.BasePresenter
import com.jhx.common.framework.BaseView
import com.jhx.common.model.Video

/**
 *
 * @author Jack 2018-03-07 19:34
 */
class   Contract {

    interface StoreManagerView : BaseView {
        fun getListSuccess(videoList: List<Video>?)
        fun getContext(): Activity
        fun deleteVideoSuccess()
        fun stickVideoSuccess()
        fun getListError()

    }

    abstract class StoreManagerPresenter: BasePresenter<StoreManagerView>() {
        abstract fun getVideoList(pageIndex: Int, pageSize: Int, onStart: (() -> Unit)? = null, onComplete: (() -> Unit)? = null)
        abstract fun deleteVideo(id: String)
        abstract fun stickVideo(id: String, isTop: Int)
    }
}